package com.isoft.data.dao;

import com.isoft.data.xml.Frtt;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FrttDao {
    @Insert("INSERT INTO AIRPORT.META(SNDR,RCVR,SEQN,DDTM,TYPE,STYP)" +
            "VALUES(#{frtt.meta.sndr},#{frtt.meta.rcvr},"+
            "#{frtt.meta.seqn},#{frtt.meta.ddtm},"+
            "#{frtt.meta.type},#{frtt.meta.styp})")
    public int addMeta(@Param("frtt") Frtt frtt);
    @Insert("INSERT INTO AIRPORT.FRTT(SEQN,DDTM,FLID,FFID,FIDE,frtt,FRLT)" +
            "VALUES(#{frtt.meta.seqn},#{frtt.meta.ddtm}," +
            "#{frtt.frttDflt.flid},#{frtt.frttDflt.ffid}, #{frtt.frttDflt.fide}," +
            "#{frtt.frttDflt.frtt}, #{frtt.frttDflt.frlt})")
    public int addfrtt(@Param("frtt") Frtt frtt);
}
